package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.pojo.User;

/**
 * @Auther: wangrui
 * @Date: 2018/6/7 14:51
 * @Description:
 */
public interface IUserService {
    ServerResponse<User> login(String username,String password);

    ServerResponse<String> register(User user);

    ServerResponse<String> checkVaild(String str,String type);

    ServerResponse<String> SelectQuestion(String username);

    ServerResponse<String> forgetCheckAnswer(String username,String question,String answer);

    ServerResponse<String> forgetResetPassword(String username,String passwordNew,String forgetToken);

    ServerResponse<String> resertPassword(String passwordOld,String passwordNew,User user);

    ServerResponse<User> updateUserInfo(User user);

    ServerResponse<User> get_Information(Integer id);

    ServerResponse checkAdminRole(User user);
}
